package com.lmz.project.redis.arithmetic.threadLearn.createthread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadPool {
    public static void main(String[] args) {
        ExecutorService service = Executors.newFixedThreadPool(10);
        RunnableImpl runnable = new RunnableImpl();
        service.execute(runnable);
        service.execute(runnable);
        service.execute(runnable);
        service.shutdown();
        service.execute(runnable);

    }
}
